/*
 ============================================================================
 Page	     : 62
 Name        : typesize.c
 Date	     : 20210402
 Author      : Hbue 18060333
 Copyright   : Your copyright notice
 Description : 打印类型大小
 ============================================================================
 */

#include <stdio.h>
int main(void)
{
	/* C99为类型大小提供%zd转换说明 */
	printf("Type int has a size of %zd bytes.\n",sizeof(int));
	printf("Type char has a size of %zd bytes.\n",sizeof(char));
	printf("Type long has a size of %zd bytes.\n",sizeof(long));
	printf("Type long long has a size of %zd bytes.\n",sizeof(long long));
	printf("Type double has a size of %zd bytes.\n",sizeof(double));
	printf("Type long double has a size of %zd bytes.\n",sizeof(long double));
	
	return 0;
}

